<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>     

<title>冻结申请</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link href="<s:url value="/css/a.css"/>" type="text/css"
	rel="stylesheet" />
<link href="<s:url value="/css/index.css"/>" type="text/css"
	rel="stylesheet" />


<script type="text/javascript"
	src="<s:url value="/js/jquery-1.9.1.min.js" />"></script>
<script type="text/javascript"
	src="<s:url value="/js/jquery.validate.min.js" />"></script>
<script type="text/javascript"
	src="<s:url value="/js/pwms.validate.js?v13" />"></script>
<script language="javascript" type="text/javascript"
	src="<s:url value="/js/My97DatePicker/WdatePicker.js"/>"></script>
<script type="text/javascript"
	src="<s:url value="/js/jquery.blockUI.js" />"></script>
	
<style type="text/css">
.fieldError {
	color: red;
	text-align: left;
}

.error {
	float: none;
	color: red;
	padding-left: .5em;
	vertical-align: top;
}

table th {
	font-weight: bolder;
	text-align: left;
	background-color: #5599FF;
}
</style>
<script type="text/javascript">
   $(document).ready(function(){
      $("#submitFrom").click(function(){
         var item = $(":radio:checked");
         var len=item.length;
         
         var detail=$("#result_detail").val();
         if(len == 0){
            $("#one").html("请选择一个审核结果");
            return false;
         }
         if(detail == ''){
            $("#two").html("请填写审核意见");
            return false;
         }
         
      });
   });
   	function checkImgs(str){
		
		 $(document).ready(function () {
		
         		 // alert("aa");
         	var htmls= "<div id='dlgTest' >"
						+"  <div class='dialog-title'><a  href='javaScript:closeDiv()'>关闭</a><span ></div>"
						+"  <div class='dialog-content'> <img src='"+str+"' />  </div> </div>";
		      $.blockUI({ message:htmls, css: { width: '90%',top:'10px',left:'5%',overflow:'scroll'}});
                  			
        });
	}
	function closeDiv(){
		 $(document).ready(function () {
		      $.unblockUI();
        });
	}
</script>

</head>

<body>
	
		<div class="subpage">
			
				<div class="user_title">
					<h2 class="headline-inquires">
						解冻申请<br />
						<span class="sub-title">WELCOME TO SHANGHAI</span>
					</h2>
				</div>
				<s:form id="agent" action="/setting/unfrozenupdate.ct" method="post"  theme="simple"  >
				<table width="100%" border="1" cellspacing="0" class="table">
					<tr>
						<td colspan="4" align="center">

							<h2 class="headline-inquires">
								结算详细信息<br />
								<span class="sub-title"></span>
							</h2>
						</td>
					</tr>
					<tr>
						<th colspan="4">结算详细信息</th>
					</tr>
					<tr>
						<td>商户号：</td>
						
						<td class="td_bg">
						<s:property value="#request.sett.merchantno"/>
						</td>
					
						<td>商户名称：</td>
						<td class="td_bg"><s:property value="#request.sett.merchantname"/></td>
						
					</tr>
					<tr>
						<td>结算日期：</td>
						<td class="td_bg">
						<s:property value="#request.sett.settledate"/>
							
						 </td>
						<td>序号：</td>
						
						<td class="td_bg"><s:property value="#request.sett.orderno"/></td>
					</tr>
					<tr>
						<td>总金额：</td>
						
						<td class="td_bg"><s:property value="#request.sett.totalamt"/>元</td>
						<td>总笔数：</td>
						
						<td class="td_bg"><s:property value="#request.sett.totalnum"/></td>
					</tr>
					<tr>
						<td>商户手续费：</td>
						
						<td class="td_bg"><s:property value="#request.sett.merchantfee"/>元</td>
						<td>结算金额：</td>
						
						<td class="td_bg"> <s:property value="#request.sett.merchantsettleamt"/>元</td>
					</tr>
			<tr>
						<th colspan="4">审核记录</th>
						
					</tr>
				   <tr>
						<td colspan="4">
						<table width='100%'>
						  <tr>
						    <td width='20%'> 审核操作</td>
						    <td width='50%'> 审核意见</td>
						    <td width='10%'> 操作员</td>
						    <td width='10%'> 操作日期</td>
						     <td width='10%'> 图片预览</td>
						  </tr>
						<s:if test="#request.list!=null">
						 <s:iterator value="#request.list" status="stat" var="sett">
						  <tr>
						    <td><s:property value="#sett.audit_name"/> </td>
						    <td><s:property value="#sett.result_detail"/></td>
						    <td><s:property value="#sett.operators"/></td>
						    <td><s:property value="#sett.dtCreate"/></td>
						    <td >
							    <s:if test="#sett.pathUrl!=''">
							    <input id="fileIput" onclick="checkImgs('<s:property value='#sett.pathUrl'/>')"  type="button" value="预览"/>
							    </s:if>
						    </td>
						  </tr>
						
						 </s:iterator>
						 </s:if>
						</table>
						
						</td>
					</tr>
					<tr>
						<th colspan="4">解冻申请</th>
						<s:hidden name="idd" value="%{#request.sett.id}"/>
					</tr>
					<tr>
						<td>申请解冻：</td>
						
						<td colspan="3">
							<s:radio id="result_code" name="auditing.result_code" list="#request.auditingMap" listKey="key" listValue="value"></s:radio>
							<strong id="one" style="color:red;"></strong>
						 </td>
					</tr>
					<tr>
						<td align="right">解冻原因：</td>
						<td colspan="3"><s:textarea rows="5" id="result_detail" cssStyle="width:100%;"
								name="auditing.result_detail" />
								<strong id="two" style="color:red;"></strong>
								</td>

					</tr>
					
					<tr>
						<td align="center" colspan="4"><s:submit id="submitFrom" value="确定" /> &nbsp;&nbsp; 
								<input type="reset"" value="取  消"/></td>
					</tr>
					
				</table>
			</s:form>
		</div>
	
</body>
</html>
